package thisDemo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2024-09-28
 * Time: 17:57
 */
public class Test {
    public static void main(String[] args) {
        Manager manager = new Manager("001","张三",15000,4500);
        System.out.println(manager.getId() + "," + manager.getName() + ","+ manager.getSalary()
        +"," + manager.getBouns());
        manager.work();
        manager.eat();

        Cook cook = new Cook();
        cook.setId("002");
        cook.setName("李四");
        cook.setSalary(8000);
        System.out.println(cook.getId() + "," + cook.getName() + ","+ cook.getSalary());
        cook.work();
        cook.eat();

    }


}
